//
//  Utils.h
//  BeautyDesign
//
//  Created by 迈哲iOS on 17/2/12.
//  Copyright © 2017年 迈哲iOS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface Utils : NSObject

//生成缩略图
+ (UIImage *)imageWithThumbnail:(UIImage *)image size:(CGSize)thumbSize;

//是否为有效手机号码
+(BOOL)isMobileNumber:(NSString *)mobileNum;

//颜色值转换UIColor
+(UIColor*)colorConvertFromString:(NSString*)value;
//颜色值转换UIColor
+(NSString*)HexFromUIcolor:(UIColor*)color;

//去掉字典中的NSNull类型的数据
+(NSDictionary *)nullDic:(NSDictionary *)myDic;

//去掉数组中的NSNull类型的数据
+(NSArray *)nullArr:(NSArray *)myArr;

//获取字体
+ (UIFont*)customFontWithPath:(NSString*)path
                         size:(CGFloat)size
                      isLocal:(BOOL)isLocal;

//md5
+ (NSString *) md5:(NSString *) input;

//jsonString --> json

+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;

//计算某个时间前多少天或者后多少天的时间
+(NSString *)TimeDifferenceOriginalString:(NSString *)originalString
                               differTime:(NSTimeInterval)differTime
                      enterDateFormatterString:(NSString *)enterMatterString
                        outDateFormatterString:(NSString *)outmatterString;

+ (BOOL)checkCardNo:(NSString*)cardNo;

//邮箱
+(BOOL)isEmailAddress:(NSString *)emaelString;
@end
